# Maintainer:
# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Generator  : CPANPLUS::Dist::Arch 1.28

pkgname=perl-test-requiresinternet
pkgver=0.05
pkgrel=9
pkgdesc="Easily test network connectivity"
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=(perl)
makedepends=()
url='https://search.mcpan.org/dist/Test-RequiresInternet'
source=("https://search.mcpan.org/CPAN/authors/id/M/MA/MALLEN/Test-RequiresInternet-$pkgver.tar.gz")
sha256sums=('bba7b32a1cc0d58ce2ec20b200a7347c69631641e8cae8ff4567ad24ef1e833e')
_distdir="Test-RequiresInternet-$pkgver"

build() {
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
    PERL_AUTOINSTALL=--skipdeps                            \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
    PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
    MODULEBUILDRC=/dev/null

  cd $_distdir
  /usr/bin/perl Makefile.PL
  make
}

check() {
  cd $_distdir
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  make test
}

package() {
  cd $_distdir
  make install

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
